CommandSignal class¶
Attributes: [DebuggerDisplay("{DebuggerDisplay,nq}")]
Defined in
Namespace: ReactiveUI.Primitives.Signals
Assembly: ReactiveUI.Primitives.Core.dll
Full name: ReactiveUI.Primitives.Signals.CommandSignal<T>
Modifiers: public sealed
Summary¶
Minimal reactive command that gates execution and publishes result, fault, and running state streams.
Applies to
net10.0, net10.0, net10.0-desktop1.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-browserwasm1.0, net9.0, net9.0, net9.0-desktop1.0, net9.0-desktop1.0, net9.0-browserwasm1.0, net9.0-browserwasm1.0, net8.0, net8.0, net8.0-ios17.5, net8.0-macos14.5, net8.0-macos14.5, net8.0-macos14.2, net8.0-macos14.2, net8.0-maccatalyst17.5, net8.0-maccatalyst17.5, net8.0-tvos17.2, net8.0-tvos17.2, net8.0-ios17.5, netstandard2.1, netstandard2.1, net481, net462, net462, net481
Class hierarchy
classDiagram
class CommandSignal~T~
class IObservable~TResult~ {
<>
}
IObservable~TResult~ <|.. CommandSignal~T~
class IDisposable {
<>
}
IDisposable <|.. CommandSignal~T~
Implements: IObservable
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [CommandSignal](# class. |
Properties¶
| Name | Summary |
|---|---|
| Results | Gets the successful command results. |
| Faults | Gets command execution failures as values before the returned task rethrows them. |
| IsRunning | Gets a state signal that is true while an execution is in flight. |
| CanRun | Gets a value indicating whether the command can currently run. |
Methods¶
| Name | Summary |
|---|---|
| ExecuteAsync | Executes the command if allowed and publishes the result or fault. |
| Dispose | Executes the Dispose operation. |
| Subscribe | Subscribes to successful command results. |